
class NoteDomain:
    def __init__(self, **kwargs):
        self.noteId = kwargs.get('noteId')
        self.noteDate = kwargs.get('noteDate')
        self.startTime = kwargs.get('startTime')
        self.endTime = kwargs.get('endTime')
        self.noteType = kwargs.get('noteType')
        self.noteContent = kwargs.get('noteContent')
        self.createTime = kwargs.get('createTime')
        self.updateTime = kwargs.get('updateTime')

    def __str__(self):
        return str(self.__dict__)

    def get(self, key: str):
        try:
            return getattr(self, key)
        except AttributeError:
            return None
